package com.kun.hanlp.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.Serializable;
import java.util.List;

/**
 * @author kun.li
 */
@Data
@ConfigurationProperties(prefix = HanlpProperties.HanlpPrefix)
public class HanlpProperties implements Serializable {

    public final static String HanlpPrefix = "hanlp";
    /**
     * HANLP_PROPERTIES_PATH 地址
     */
    private String haNlpPropertiesPath;

    /**
     * 指定hanlp路径方式
     * 0 代表完全自定义
     * 1 代表使用hanlp.properties方式 ---> hanlp.haNlpPropertiesPath 即可
     */
    private String type = "0";


    /**
     * 主目录
     */
    private String root;

    private List<String> customDictionPath;


    private boolean debug;


    /**
     * 监听文件所在目录
     */
    private String watchFileDirPath = "D:/ocean/data/dictionary/custom";


    /**
     * 文件监听间隔时长,秒单位
     */
    private Long watchFileTime = 5L;
    /**
     * 文件监听前缀
     */
    private String watchFilePrefix = "test";
    /**
     * 文件监听后缀
     */
    private String watchFileSuffix = "txt";


}
